
from flask import Flask,render_template,request

app=Flask(__name__)

@app.route("/register")
def register():
    return render_template("register.html")

@app.route("/list",methods=["GET","POST"])
def list():
    if request.method == "POST":
        result=request.form
        return render_template("index.html",result=result)

if __name__ == '__main__':
    app.run()